#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int  main()
{
	int i,k;
	srand( (unsigned)time( NULL ) );
	for( i = 0; i < 10;i++ )
	{
		k=rand()%100+1;   //随机产生1~100的随机数
		printf("k=%d\n", k );
	}
	return 0;
}
